package com.wyp.design.pattern.behavior.strategy;

/**
 * 营销活动类 用来包装具体的营销活动
 *
 * @author: Oliver
 * @time: 2020/5/24/5:49
 */
public class PromotionActivity {
    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    public void executePromotionStrategy(){
        promotionStrategy.doPromotion();
    }

}
